package day04;

import java.util.Scanner;

public class ScoreLevel {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入成绩:");
        double score = scanner.nextInt();
        if(score < 0 || score > 100) {
            System.out.println("输入有误0-100");
        }else if(score >= 90) {
            System.out.println("A-优秀");
        }else if(score >= 80) {
            System.out.println("B-良好");
        }else if(score >= 60) {
            System.out.println("C-及格");
        }else
            System.out.println("D-不及格");
    }
}
